How to Export data from tally using php?
<?php
$requestXML = '<ENVELOPE>'.
'<HEADER>'.
'<TALLYREQUEST>Export Data</TALLYREQUEST>'.
'</HEADER>'.
'<BODY>'.
'<EXPORTDATA>'.
'<REQUESTDESC>'.
'<REPORTNAME>Daybook</REPORTNAME>'.
'<STATICVARIABLES>'.
'<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>'.
'</STATICVARIABLES>'.
'</REQUESTDESC>'.
'</EXPORTDATA>'.
'</BODY>'.
'</ENVELOPE>';
<ENVELOPE> <HEADER> <VERSION>1</VERSION> <TALLYREQUEST>EXPORT</TALLYREQUEST> <TYPE>Collection</TYPE> <ID>List of All Employees</ID> </HEADER> <BODY> <DESC> <STATICVARIABLES> <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT> </STATICVARIABLES> </DESC> </BODY> </ENVELOPE>
<?xml version="1.0" encoding="UTF-8"?>
<ENVELOPE>
<HEADER>
<VERSION>1</VERSION>
<TALLYREQUEST>EXPORT</TALLYREQUEST>
<TYPE>Object</TYPE>
<SUBTYPE>VOUCHER</SUBTYPE>
<ID TYPE="Name">ID:{{voucherId}}</ID>
</HEADER>
<BODY>
<DESC>
<STATICVARIABLES>
<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
<SVCURRENTCOMPANY>{{companyName}}</SVCURRENTCOMPANY>
</STATICVARIABLES>
<FETCHLIST>
<FETCH>Date</FETCH>
<FETCH>VoucherTypeName</FETCH>
<FETCH>VoucherNumber</FETCH>
</FETCHLIST>
</DESC>
</BODY>
</ENVELOPE>
Use this XML tags for Tally Sales order,Sales Voucher,Receipt Voucher,Purchase,GRN,Stock Transfer and any other Tally voucher data access using XML format.
A practical, quick reference for accountants, GST practitioners and small business owners.
Last updated: Oct 7, 2025
TallyPrime 6.2 focuses on regional compliance, multilingual invoicing (notably Arabic support), improved auditability with an enhanced edit log, and several bank‑reconciliation and usability improvements. This release is particularly useful for businesses operating in GCC and other multilingual markets.
Export and share invoices in Arabic, English or bilingual PDFs. WhatsApp & email templates support Arabic content.
Invoice Format 2 set as default to align with certain GCC tax authority recommendations; Format 1 still available for compatibility.
Permanent edit logs for changes — useful for compliance and audits. Admins can enable/disable depending on policy.
Improved bank reconciliation summary, manual reconciliation reporting and navigation to reconciled transactions.
<!-- Example: share invoice via WhatsApp (conceptual) -->
1. Generate invoice in TallyPrime
2. Choose Export > PDF (Arabic / English / Bilingual)
3. Use Share > WhatsApp template to send
Note: The exact menu names may vary on your localised build. Always test before rolling out to production.

How to Integrate .NET with Tally Using XML
How to Enable TCS Calculation on Sale of Goods in Tally ERP 9
Create Sales Order using xml request to Tally erp 9
Tally Integration Using XML Read / Write
Tally XML stock summary request - Item Wise Stock Summary
How to Fetch Tally Products Price List Using xml request